<?php
	$site_url=site_url();
	$menu=array(
					array(
							'name'=>'常用功能',
							'url'=>'',
							'sub'=>array(
											array('name'=>'客户管理','url'=>$site_url.'crm/user/potential'),
											array('name'=>'后台权限','url'=>$site_url.'crm/user/adminer'),
											)
					)
	)

?>


<div class="nav_lf">
	<ul>
		
        <?php if(!empty($top_li)&&$top_li=='user_center'):?>
		<li>
		    <a href="javascript:;" class="box">
		    	<img src="<?php echo base_url()?>themes/default/images/user_icon.png" />
		    	用户中心
		    </a>
		    <dl>
			  <dd><a <?php if($left_nav=='potential'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/user/potential">客户管理</a></dd>
		      <dd><a <?php if($left_nav=='sale'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/user/sale">销售看板</a></dd>
              <?php if(!empty($_SESSION['is_root'])):?>
              <dd><a <?php if($left_nav=='adminer'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/user/adminer">后台权限</a></dd>
              <?php endif;?>
		    </dl>
         
		</li>
        <?php elseif(!empty($top_li)&&$top_li=='tongji'):?>
		<li>
		    <a href="javascript:;" class="box">
		    	<img src="<?php echo base_url()?>themes/default/images/user_icon.png" />
		    	用户统计
		    </a>
		    <dl>
			  <dd><a <?php if($left_nav=='user'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/user">客户总量</a></dd>
		      <dd><a <?php if($left_nav=='user_activity'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/user_activity">月活动度</a></dd>
              <dd><a <?php if($left_nav=='user_reg'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/user_reg">新增客户</a></dd>
              <dd><a <?php if($left_nav=='user_zhuan'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/user_zhuan">客户转化</a></dd>
              <dd><a <?php if($left_nav=='user_from'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/user_from">客户来源</a></dd>
		    </dl>
         
		</li>
        <li>
		    <a href="javascript:;" class="box">
		    	<img src="<?php echo base_url()?>themes/default/images/order_icon.png" />
		    	订单统计
		    </a>
		    <dl>
			  <dd><a <?php if($left_nav=='order'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/order">加油订单</a></dd>
		      <dd><a <?php if($left_nav=='order_taocan'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/order_taocan">套餐订单</a></dd>
              <dd><a <?php if($left_nav=='order_oil'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/order_oil">油品分类销量</a></dd>
              <dd><a <?php if($left_nav=='order_gas'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/order_gas">油站销售</a></dd>
              <!--<dd><a href="<?php echo site_url();?>crm/user/adminer">合作方销售</a></dd>-->
		    </dl>
         
		</li>
        
        
        <li>
		    <a href="javascript:;" class="box">
		    	<img src="<?php echo base_url()?>themes/default/images/maoli.png" />
		    	毛利统计
		    </a>
		    <dl>
			  <dd><a <?php if($left_nav=='money_gas'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/money_gas">油站服务费</a></dd>
		      <dd><a <?php if($left_nav=='money_car'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/money_car">车主服务费</a></dd>
              <dd><a <?php if($left_nav=='coupon_data'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/coupon_data">优惠券核销</a></dd>
              <dd><a <?php if($left_nav=='service_money'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/service_money">交易手续费</a></dd>
              <dd><a <?php if($left_nav=='earn'):?>class="active"<?php endif;?> href="<?php echo site_url();?>crm/tongji/earn">销售毛利</a></dd>
		    </dl>
         
		</li>
        <?php endif;?>
        
		
	</ul>
</div>